Repository navigation
fix(mcpx): escape angle placeholders in generated tables; fix mcpx-docs workflow header (#13422) - #13449
Merged
Conversation
…cs workflow header (#13422) The generated reference tables and the conformance matrix carried bare <placeholder> tokens in prose, which the book renderer eats as HTML tags (mdBook warns; the placeholder vanishes from the page). PR #13413 escaped the committed occurrences by hand, but the generators reproduced the bare forms on the next regeneration -- TestMatrix was failing on main for exactly that reason. - internal/refdoc gains EscapeAngles: < and > become </> in prose, while backtick code spans (the house style for a literal placeholder, e.g. `flake:<ref>`) pass through untouched. Table cells route through it. - internal/conformance's mdEscape uses it, so the regenerated conformance matrix reproduces the escaped <id> rows byte for byte; the only matrix diff is the input-digest line, stale since the requirements.md hand edits. requirements.json regenerated to match its source the same way. - internal/settings' ConfigurationTable escapes its governs cell the same way. All committed generated regions regenerate byte identically today, so this only removes the regression path. - .github/workflows/mcpx-docs.yml: the header claimed pull-request builds its triggers never fire; it now describes the real triggers (push to main + manual dispatch, like the sibling docs workflows), the dead PR-only artifact-upload step is removed, and the deploy job's "PR build" reference is corrected. Verification: go test ./internal/refdoc ./internal/settings ./internal/conformance ./internal/cli ./internal/api green on the laptop; nix build .#mcpx-docs shows exactly one warning before and after -- the known search-index size notice -- with zero unclosed-tag warnings, and TestMatrix passes again.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For #13422 — both halves:
Generator escaping. The book audit (PR #13413) escaped bare
<placeholder>tokens in the committed docs by hand, but the generators kept the bare forms in their inputs, so the next regeneration reintroduced them —TestMatrixwas failing on main for exactly this (regeneration flipped the five<id>matrix rows back to<id>, and the input digest was stale from the same hand edits).internal/refdocgainsEscapeAngles:</>become</>in prose, while backtick code spans pass through untouched — the house style for a literal placeholder (`flake:<ref>`, the audit's own source fix) keeps its exact text, and existing entities are never double-escaped.refdoc.Tablecells route through it.internal/conformance'smdEscapeuses it, so the regenerated matrix reproduces the escaped rows byte for byte; the only matrix diff is the input-digest line.requirements.jsonregenerated to match its source the same way.internal/settings'ConfigurationTableescapes its governs cell identically. All committed generated regions (configuration.md, parity.md, protocol.md) regenerate byte-identically today, so this removes the regression path without churning the book.Workflow header.
mcpx-docs.ymlclaimed pull-request builds that its triggers never fire and carried a dead PR-only artifact step. The header now describes the real triggers (push to main + manual dispatch — verified against fleet-docs.yml, atlas-docs.yml, id-docs.yml), the dead step is removed, and the deploy job's "PR build" reference now says "build job". No trigger or job behavior changes.Verification (laptop route):
go test ./internal/refdoc ./internal/settings ./internal/conformance ./internal/cli ./internal/api— all green;TestMatrixpasses again; new unit tests pin the escaping in refdoc and inmdEscape.GOOS=darwin GOARCH=arm64 go test -c ./internal/conformance— ok.nix build .#mcpx-docs: exactly one warning before and after — the known search-index size notice — and zero unclosed-tag warnings.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T16:21:55Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.